package com.xsfh.cruddemo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xsfh.cruddemo.common.Result;
import com.xsfh.cruddemo.entity.User;
import com.xsfh.cruddemo.mapper.UserMapper;
import com.xsfh.cruddemo.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Override
    public Result getList() {
        List<User> list = list();
        return Result.success("成功返回").data("List",list);
    }
}
